import { Router } from "express";
import db from "../../../database";
const router = Router();

//更新数据表结构
router.post("/alter", async (req, res) => {
  await db.sync({ alter: true });
  res.send("ok");
});
//重建表
router.post("/force", async (req, res) => {
  await db.sync({ force: true });
  res.send("ok");
});

export default router;
